﻿#pragma once
#include <QObject>

class MqttInfoEntity : public QObject
{
	Q_OBJECT
public:
	MqttInfoEntity(QObject *parent = nullptr);

	// add copy constructor
	MqttInfoEntity(const MqttInfoEntity &other);

	// add assignment operator
	MqttInfoEntity &operator=(const MqttInfoEntity &other);

public:
	int id() const { return m_id; }
	void setId(int id) { m_id = id; }

	QString name() const { return m_name; }
	void setName(const QString &name) { m_name = name; }

	QString host() const { return m_host; }
	void setHost(const QString &host) { m_host = host; }

	QString clientId() const { return m_clientId; }
	void setClientId(const QString &clientId) { m_clientId = clientId; }

	QString userName() const { return m_userName; }
	void setUserName(const QString &userName) { m_userName = userName; }

	QString password() const { return m_password; }
	void setPassword(const QString &password) { m_password = password; }

private:
	// id
	int m_id;
	// name
	QString m_name;
	// host
	QString m_host;
	// client id
	QString m_clientId;
	// user name
	QString m_userName;
	// password
	QString m_password;
};
